package com.ruoyi.system.domain;

import java.util.Objects;

/**
 * @author Ly lilongfei
 * @date 2024/8/26
 * @Description
 */
public class Athlete {

    String athleteId;
    String athleteName;

    public String getAthleteName() {
        return athleteName;
    }

    public void setAthleteName(String athleteName) {
        this.athleteName = athleteName;
    }

    public String getAthleteId() {
        return athleteId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Athlete athlete = (Athlete) o;
        return Objects.equals(athleteId, athlete.athleteId) && Objects.equals(athleteName, athlete.athleteName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(athleteId, athleteName);
    }

    public void setAthleteId(String athleteId) {
        this.athleteId = athleteId;
    }

    public Athlete() {
    }

    public Athlete(String athleteId, String athleteName) {
        this.athleteId = athleteId;
        this.athleteName = athleteName;
    }
}
